Skip to content

feature(otel-collector): ordered processors list#910

Open
filiphaftek wants to merge 1 commit into
mainfrom
fh/otel_processors_order
Open

feature(otel-collector): ordered processors list#910
filiphaftek wants to merge 1 commit into
mainfrom
fh/otel_processors_order

Conversation

@filiphaftek

@filiphaftek filiphaftek commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

otel-collector processors list is using map keys, which is sorted alphabethically.
Some processoers should be used in order i.e. tail_sampling before batch, so this PR adds additional property to set proper order of the processors. It can only be used together with processors definition.
Change is backward compatible

Checklist

Test plan

Unit tests.
e2e

@filiphaftek
filiphaftek requested review from a team and bobheadxi July 16, 2026 09:16
@filiphaftek filiphaftek changed the title feature(otel-collector): ordered processors list) feature(otel-collector): ordered processors list Jul 16, 2026
Comment on lines +47 to +55
{{- if .Values.openTelemetry.gateway.config.traces.processorOrderedList }}
{{- range .Values.openTelemetry.gateway.config.traces.processorOrderedList }}
- {{ . }}
{{- end }}
{{- else }}
{{- range $key, $val := .Values.openTelemetry.gateway.config.traces.processors }}
- {{ $key }}
{{- end }}
{{- end }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should processors and processorOrderedList be mutually exclusive? Curious why we shouldn't deprecate processors or simply change its shape as processors is effectively buggy it seems

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobheadxi currently processorOrderedList only sets the order, not defines the processors. If you think having them separated is better, we need to make list with full definitions, similar to https://sourcegraph.sourcegraph.com/r/github.com/sourcegraph/deploy-sourcegraph-helm/-/blob/charts/sourcegraph/values.yaml?L667 - if you think this is more clear, I can refactor?

Comment on lines 45 to +47
{{- if .Values.openTelemetry.gateway.config.traces.processors }}
processors:
{{- if .Values.openTelemetry.gateway.config.traces.processorOrderedList }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't this mean without processors, processorOrderedList does not work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, processorOrderedList is just addition to processors, not replacement, pls see above comment/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants